import { post, put,remove, get } from '@/security/request'

export function getPageApi(data: any): Promise<IRespResult<any>> {
    return get("/admin/anchor/app/version/getPage", data);
}

export function addApi(data: any): Promise<IRespResult<any>> {
    return post("/admin/anchor/app/version/add",  data);
}

export function editApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/anchor/app/version/update",  data);
}

export function removeApi(id: number): Promise<IRespResult<any>> {
    return remove(`/admin/anchor/app/version/${id}/delete`);
}